from turbogears import validators, widgets

from mnemoply import reports
from mnemoply.utils import IdsValidator

class DailyPaymentReport(reports.RDSReport):
    name = _("Daily Payment Report")
    tag = 'DailyPayment'
    report_type = reports.RDSReportType.WORD
    template_module = "mnemoply.templates.reports.daily_payment_register"

    fields = [
        widgets.HiddenField(name="ids", label=_("IDs"),
            validator=IdsValidator),
    ]

exposed = DailyPaymentReport()
